﻿using System;
using CarsClassLibrary;
using System.Collections.Generic;

namespace Logic
{
    public class Printer
    {
        public void Print(List<AbstractCar> A)
        {
            Console.WriteLine("Автомобильный парк.");
            foreach (AbstractCar auto in A)
            {
                Console.WriteLine(auto.brand);
            }
            Counter counter = new Counter();
            double a = counter.Count(A);
            Console.WriteLine("Общая стоимость: " + a);
        }
    }
}
